<div class="row">
    <div class="col-lg-12">
        <div class="box">
            <div class="box-header">
                <a class="btn btn-app" data-toggle="modal" data-target="#rent_add">
                    <i class="fa fa-plus"></i> 添加
                </a>
            </div><!-- /.box-header -->
            <div class="modal fade modal" id="rent_add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                    <div class="modal-content table-responsive">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h4 class="modal-title" id="myModalLabel">添加缴费记录</h4>
                        </div>
                        <div class="modal-body">

                            <div class="form-group">
                                <div class="input-group">
                                    <div class="input-group-addon">
                                        缴费时间
                                    </div>
                                    <input class="form-control" type="text" autocomplete="off" placeholder="请输入缴费时间" value="<?php echo date("Y-m-d H:i:s"); ?>" id="time"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="input-group">
                                    <div class="input-group-addon">
                                        缴费金额
                                    </div>
                                    <input class="form-control" type="text" autocomplete="off" placeholder="缴费金额" id="price"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="input-group">
                                    <div class="input-group-addon">
                                        缴费账号
                                    </div>
                                    <input class="form-control" type="text" autocomplete="off" placeholder="请输入缴费账号" id="acc"/>
                                </div>
                            </div>


                            <div class="form-group">
                                <div class="input-group">
                                    <div class="input-group-addon">
                                        缴费银行
                                    </div>
                                    <input class="form-control" type="text" autocomplete="off" placeholder="请输入缴费银行" id="acc_name"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="input-group">
                                    <div class="input-group-addon">
                                        续租时长
                                    </div>
                                    <input class="form-control" type="text" autocomplete="off" placeholder="续租了几个月？" id="x_time"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="input-group">
                                    <div class="input-group-addon">
                                        到期时间
                                    </div>
                                    <input class="form-control" type="text" autocomplete="off" placeholder="请输入到期时间" value="<?php echo date("Y-m-d H:i:s"); ?>" id="last_time"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="input-group">
                                    <div class="input-group-addon">
                                        房子名称
                                    </div>
                                    <input class="form-control" type="text" autocomplete="off" placeholder="服务站名字" id="addr"/>
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <div class="input-group">
                                    <div class="input-group-addon">
                                        备注
                                    </div>
                                    <input class="form-control" type="text" autocomplete="off" placeholder="备注" id="remarks"/>
                                </div>
                            </div>

                            <input class="form-control form-control-solid placeholder-no-fix" type="hidden" id="uname" value="<?php echo $_SESSION['uname'];?>"/>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-danger pull-left" data-dismiss="modal">关闭</button>
                            <button type="button" class="btn btn-success pull-right" data-dismiss="modal" onclick='rent_add()'>保存</button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="box-body">
                <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
                    <div class="row">
                        <div class="col-sm-6"></div>
                        <div class="col-sm-6"></div>
                    </div>
                    <div class="row">
                        <div class="col-sm-12">
                            <table class="table table-bordered table-hover dataTable">
                                <thead>
                                <tr role="row">
                                    <th>缴费时间</th>
                                    <th>缴费金额</th>
                                    <th>缴费账号</th>
                                    <th>缴费银行</th>
                                    <th>续租时长</th>
                                    <th>到期时间</th>
                                    <th>房子名称</th>
                                    <th>备注</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php foreach($data['InstallList'] as $k){?>
                                    <?php if ($k['uname'] === $_SESSION['uname']){?>
                                        <tr>
                                            <td class=""><?php echo $k['time']?></td>
                                            <td class=""><?php echo $k['mobile']?></td>
                                            <td class=""><?php echo $k['name']?></td>
                                            <td class=""><?php echo $k['speed']?></td>
                                            <td class=""><?php echo $k['otime']?></td>
                                            <td class=""><?php echo $k['addr']?></td>
                                            <td class=""><?php echo $k['address']?></td>
                                            <td class=""><?php echo $k['remarks']?></td>
                                        </tr>
                                        <?php /*endstart*/} /*endforeach*/ }?>
                                </tbody>
                                <tfoot>
                                <tr role="row">
                                    <th>缴费时间</th>
                                    <th>缴费金额</th>
                                    <th>缴费账号</th>
                                    <th>缴费银行</th>
                                    <th>续租时长</th>
                                    <th>到期时间</th>
                                    <th>房子名称</th>
                                    <th>备注</th>
                                </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div><!-- /.box-body -->
            </div>
        </div>
    </div>
</div>